package com.eve.service;

import com.eve.entity.BlogCategory;

import java.util.List;

public interface BlogCategoryService {
    //新增保存分类
    int saveCategory(BlogCategory blogCategory);

    //根据id查询分类
    BlogCategory getCategory(Integer id);

    //查询所有分类
    List<BlogCategory> getAllCategory();

    //根据分类名称查询分类
    BlogCategory getCategoryByName(String name);

    //编辑修改分类
    int updateCategory(BlogCategory category);

    //删除分类
    void deleteCategory(Integer id);
}
